package ua.kpi.flats.service;

import java.util.List;
import java.util.Map;

import ua.kpi.flats.entity.BuyApplication;
import ua.kpi.flats.entity.SaleApplication;
import ua.kpi.flats.entity.SuitableOption;

public interface ApplicationService {
	Map<String,Object> getDistricts();
	boolean addBuy(BuyApplication app);
	boolean addSale(SaleApplication app);
	Map<String,Object> getBuyApplications(int from,int limit);
	Map<String,Object> getSaleApplications(int from, int limit);
	BuyApplication getBuyApp(long id);
	SaleApplication getSaleApp(long id);
	boolean removeBuyApp(BuyApplication app);
	boolean removeSaleApp(SaleApplication app);
	Map<String,Object> waitingBuyApps(int from, int limit);
	List<SuitableOption> getOptions(long appId);
	Map<String,Object> getActiveApps(int from, int limit);
	SaleApplication getSaleAppByOption(long optionId);
}
